package com.naiterui.ehp.bp.domain;
// default package

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Version;

/**
 * DocPatientGroup entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "dr_patient_group")
public class PatientGroup implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 5958718857822869621L;
	private Long id;
	private Long doctorId;
	private String name;
	private String patientIds;
	private Date createdAt;

    private Date changedAt;
    /** 创建人 */

    private String createdBy;

    /** 修改人 */
    private String changedBy;

    private Integer version;

	
	@Id
	@GeneratedValue(strategy = IDENTITY)
    @Column(name = "id", unique = true, nullable = false)
    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }
	
	@Column(name = "doctor_id", nullable = false)
	public Long getDoctorId() {
	    return doctorId;
	}
	
	public void setDoctorId(Long doctorId) {
	    this.doctorId = doctorId;
	}

	@Column(name = "name")
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

    @Column(name = "patient_ids")
	public String getPatientIds() {
		return this.patientIds;
	}

	public void setPatientIds(String patientIds) {
		this.patientIds = patientIds;
	}

	@Column(name = "created_at", length = 19)
	public Date getCreatedAt() {
		return this.createdAt;
	}

	public void setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
	}

    @Column(name = "changed_at")
    public Date getChangedAt() {
        return changedAt;
    }

    public void setChangedAt(Date changedAt) {
        this.changedAt = changedAt;
    }

    @Column(name = "created_by")
    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    @Column(name = "changed_by")
    public String getChangedBy() {
        return changedBy;
    }

    public void setChangedBy(String changedBy) {
        this.changedBy = changedBy;
    }

    @Version
    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

}